Fix an1 for NEW_STRINGS.
authorrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sun, 24 Nov 2013 03:11:28 +0000 (03:11 +0000)
committerrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sun, 24 Nov 2013 03:11:28 +0000 (03:11 +0000)
git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4655 f51c46e8-681c-474f-0cfe-069cfd0219fb

gpsbabel/an1.cc

index e32c05893671801281c37c0bb3ed5dc50ef0376f..2e148fa8f4470886886847df53a3e6df284aaa19 100644 (file)
@@ -715,7 +715,9 @@ static void Read_AN1_Waypoints(gbfile* f)
     } else {
       int u = wpt_tmp->description.indexOf("{URL=");
       QString us = wpt_tmp->description.mid(u);
-      wpt_tmp->AddUrlLink(us);
+      if (!us.isEmpty()) {
+        wpt_tmp->AddUrlLink(us);
+      }
     }
 #else
     } else if (NULL != (url=strstr(wpt_tmp->description, "{URL="))) {